package com.dayilyword.mapper;

import com.dayilyword.entity.Msg;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface MsgMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(Msg record);

    Msg selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Msg record);



    List<HashMap<String,Object>> getAttentionMsgList(int firstIndex, int lastIndex,int userId);

    List<HashMap<String,Object>> getUserHistoryMsgList(int firstIndex, int lastIndex,int userId);
}